//
//  MaoCuHuiCell.m
//  PASystem
//
//  Created by 刘沿 on 16/8/9.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "MaoCuHuiCell.h"
#import "UILabel+time.h"
@implementation MaoCuHuiCell

+(instancetype)WithMaoCuHuiCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"MaoCuHuiCell" owner:nil options:nil] lastObject];
}

- (void)setModel:(MaoCuHuiModel *)model{
    _model = model;

    if (model.CHNAME.length != 0) {
        
        self.CHNAME.text = model.CHNAME;

    }else {
    
       self.CHNAME.text = @"";
    }
    
    if (model.APPROVALTIME.length != 0) {
        
        NSString *str = [UILabel withTimeStr:model.APPROVALTIME];
        
        self.APPROVALTIME.text = str;

    }else {
        self.APPROVALTIME.text = @"";
    
    }
    
    if (model.APPROVALCOMPANY.length != 0) {
        self.APPROVALCOMPANY.text = model.APPROVALCOMPANY;

    }else {
    
       self.APPROVALCOMPANY.text = @"";
    }
    

}


@end
